﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PPSMS_Model
{
    /// <summary>
    /// 逆变器统计数据表
    /// </summary>
    public class InverterStatistics
    {
        /// <summary>
        /// Id 主键自增
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 逆变器Id
        /// </summary>
        public long? InverterId { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public string? Date { get; set; }
        /// <summary>
        /// 日发电量/KW·H
        /// </summary>
        public double DailyEnergy { get; set; }
        /// <summary>
        /// 累计发电量/KW·H
        /// </summary>
        public double? CumulativeEnergy { get; set; }
        /// <summary>
        /// 累计二氧化碳减排/T
        /// </summary>
        public double? CO2Reduction { get; set; }
    }
    /*CREATE TABLE IF NOT EXISTS INVERTER_STATISTICS (
        ID INTEGER PRIMARY KEY AUTOINCREMENT,--ID
        INVERTERID INTEGER,--逆变器ID
        DATE DATE,--日期
        DAILY_ENERGY REAL,--日发电量/KW·H 
        CUMULATIVE_ENERGY REAL,--累计发电量/KW·H
        CO2_REDUCTION REAL--累计二氧化碳减排/T
    );--逆变器统计数据表*/
}
